testQuery{
  final Weld weld=new Weld();
  WeldContainer weldContainer=weld.initialize();
  final BookManager bookManager=weldContainer.instance().select(BookManager.class).get();
  bookManager.getAllBooksWhoseAuthorIsEmmanuel();
  weld.shutdown();
}
testUserCreation{
  final Weld weld=new Weld();
  WeldContainer weldContainer=weld.initialize();
  final BookManager bookManager=weldContainer.instance().select(BookManager.class).get();
  long start=System.nanoTime();
  bookManager.createNewUsers();
  long end=System.nanoTime();
}
exploreCache{
  StringBuilder data=new StringBuilder("Cache dump");
  final Cache<Object,Object> entities=bookManager.getCache("ENTITIES");
  data.append("\n").append("ENTITIES (").append(entities.size()).append(")\n");
  for (  Map.Entry<Object,Object> entry : entities.entrySet()) {
    data.append(entry.getKey()).append("\n");
    displayTuple(entry.getValue(),data);
  final Cache<Object,Object> associations=bookManager.getCache("ASSOCIATIONS");
  for (  Map.Entry<Object,Object> entry : associations.entrySet()) {
    data.append(entry.getKey()).append("\n");
    displayAssociationTuples(entry.getValue(),data);
}
displayTuple{
  Map<String,Object> tuple=(Map<String,Object>)value;
  data.append("\t[\n");
    data.append("\t").append(entry.getKey()).append(": ").append(entry.getValue()).append("\n");
  data.append("\t]\n\n");
}
displayAssociationTuples{
  Collection<Map<String,Object>> tuples=((Map<RowKey,Map<String,Object>>)value).values();
  data.append("\t{\n");
  for (  Map<String,Object> tuple : tuples) {
    data.append("\t\t[\n");
      data.append("\t\t").append(entry.getKey()).append(": ").append(entry.getValue()).append("\n");
    data.append("\t\t],\n");
  data.append("\t}\n");
}
